home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
appsrcs.zip
/
MORSETUP.ZIP
/
APPEXIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-06
|
763b
|
37 lines
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include "morsetup.h"
/*-------------------------------------------------------------------------*/
BOOL WINAPI ExitDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch(wParam)
{
case IDEXIT_OK:
EndDialog(hDlg, 0);
IniSave();
SendMessage(hWnd, WM_DESTROY, 0, 0);
return TRUE;
case IDEXIT_NO:
EndDialog(hDlg, 0);
SendMessage(hWnd, WM_DESTROY, 0, 0);
return TRUE;
case IDEXIT_CANCEL:
EndDialog(hDlg, 0);
InvalidateRect(hWnd, NULL, 0);
return TRUE;
}
break;
}
return FALSE;
}